/**
 * 
 */
package org.paybiz.core.payplatform.yeePay.bean;

import org.paybiz.core.payplatform.yeePay.util.DigestUtil;
import org.paybiz.util.OprateHelper;

/**
 * @author nassir wen
 * @data 2012-4-9 下午03:56:28
 * @version V2.5
 * @Company: MSD.
 * @Copyright Copyright (c) 2012
 */
public class RechargeCardCallBack {
    // 业务类型
    private String r0_Cmd = "";

    // 支付结果
    private String r1_Code = "";

    // 商户编号
    private String p1_MerId = "";

    // 商户订单号
    private String p2_Order = "";

    // 成功金额
    private String p3_Amt = "";

    // 支付方式
    private String p4_FrpId = "";

    // 卡序列号组
    private String p5_CardNo = "";

    // 确认金额组
    private String p6_confirmAmount = "";

    // 实际金额组
    private String p7_realAmount = "";

    // 卡状态组
    private String p8_cardStatus = "";

    // 扩展信息
    private String p9_MP = "";

    // 支付余额 注：此项仅为订单成功,并且需要订单较验时才会有值。失败订单的余额返部返回原卡密中
    private String pb_BalanceAmt = "";

    // 余额卡号 注：此项仅为订单成功,并且需要订单较验时才会有值
    private String pc_BalanceAct = "";

    // 签名
    private String hmac = "";

    public String getR0_Cmd() {
        return r0_Cmd;
    }

    public void setR0_Cmd(String r0_Cmd) {
        this.r0_Cmd = r0_Cmd;
    }

    public String getR1_Code() {
        return r1_Code;
    }

    public void setR1_Code(String r1_Code) {
        this.r1_Code = r1_Code;
    }

    public String getP1_MerId() {
        return p1_MerId;
    }

    public void setP1_MerId(String p1_MerId) {
        this.p1_MerId = p1_MerId;
    }

    public String getP2_Order() {
        return p2_Order;
    }

    public void setP2_Order(String p2_Order) {
        this.p2_Order = p2_Order;
    }

    public String getP3_Amt() {
        return p3_Amt;
    }

    public void setP3_Amt(String p3_Amt) {
        this.p3_Amt = p3_Amt;
    }

    public String getP4_FrpId() {
        return p4_FrpId;
    }

    public void setP4_FrpId(String p4_FrpId) {
        this.p4_FrpId = p4_FrpId;
    }

    public String getP5_CardNo() {
        return p5_CardNo;
    }

    public void setP5_CardNo(String p5_CardNo) {
        this.p5_CardNo = p5_CardNo;
    }

    public String getP6_confirmAmount() {
        return p6_confirmAmount;
    }

    public void setP6_confirmAmount(String p6_confirmAmount) {
        this.p6_confirmAmount = p6_confirmAmount;
    }

    public String getP7_realAmount() {
        return p7_realAmount;
    }

    public void setP7_realAmount(String p7_realAmount) {
        this.p7_realAmount = p7_realAmount;
    }

    public String getP8_cardStatus() {
        return p8_cardStatus;
    }

    public void setP8_cardStatus(String p8_cardStatus) {
        this.p8_cardStatus = p8_cardStatus;
    }

    public String getP9_MP() {
        return p9_MP;
    }

    public void setP9_MP(String p9_MP) {
        this.p9_MP = p9_MP;
    }

    public String getPb_BalanceAmt() {
        return pb_BalanceAmt;
    }

    public void setPb_BalanceAmt(String pb_BalanceAmt) {
        this.pb_BalanceAmt = pb_BalanceAmt;
    }

    public String getPc_BalanceAct() {
        return pc_BalanceAct;
    }

    public void setPc_BalanceAct(String pc_BalanceAct) {
        this.pc_BalanceAct = pc_BalanceAct;
    }

    public String getHmac() {
        return hmac;
    }

    public void setHmac(String hmac) {
        this.hmac = hmac;
    }

    /**
     * 获取签名
     * 
     * @return
     */
    public String getLocalHmac() {
        return DigestUtil.getHmac(new String[] { r0_Cmd, r1_Code, p1_MerId,
                p2_Order, p3_Amt, p4_FrpId, p5_CardNo, p6_confirmAmount,
                p7_realAmount, p8_cardStatus, p9_MP, pb_BalanceAmt,
                pc_BalanceAct }, OprateHelper.yeepayKey);
    }
}
